/**
 */
package org.mro.grib.model.files.secondEdition.grids;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Resolution And Component Flags</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.grids.GridsPackage#getResolutionAndComponentFlags()
 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Flag table 3.3 \u2013 Resolution and component flags'"
 * @generated
 */
public enum ResolutionAndComponentFlags implements Enumerator {
	/**
	 * The '<em><b>IDIRECTION INCREMENTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #IDIRECTION_INCREMENTS_VALUE
	 * @generated
	 * @ordered
	 */
	IDIRECTION_INCREMENTS(3, "I_DIRECTION_INCREMENTS", "I_DIRECTION_INCREMENTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>JDIRECTION INCREMENTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JDIRECTION_INCREMENTS_VALUE
	 * @generated
	 * @ordered
	 */
	JDIRECTION_INCREMENTS(4, "J_DIRECTION_INCREMENTS", "J_DIRECTION_INCREMENTS"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>RESOLVED UAND VCOMPONENTS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RESOLVED_UAND_VCOMPONENTS_VALUE
	 * @generated
	 * @ordered
	 */
	RESOLVED_UAND_VCOMPONENTS(5, "RESOLVED_U_AND_V_COMPONENTS", "RESOLVED_U_AND_V_COMPONENTS"); //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>IDIRECTION INCREMENTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>IDIRECTION INCREMENTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #IDIRECTION_INCREMENTS
	 * @model name="I_DIRECTION_INCREMENTS"
	 *        annotation="http://www.eclipse.org/emf/2002/GenModel 0_en='i direction increments not given' 1_en='i direction increments given'"
	 * @generated
	 * @ordered
	 */
	public static final int IDIRECTION_INCREMENTS_VALUE = 3;

	/**
	 * The '<em><b>JDIRECTION INCREMENTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JDIRECTION INCREMENTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JDIRECTION_INCREMENTS
	 * @model name="J_DIRECTION_INCREMENTS"
	 *        annotation="http://www.eclipse.org/emf/2002/GenModel 0_en='j direction increments not given' 1_en='j direction increments given'"
	 * @generated
	 * @ordered
	 */
	public static final int JDIRECTION_INCREMENTS_VALUE = 4;

	/**
	 * The '<em><b>RESOLVED UAND VCOMPONENTS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RESOLVED UAND VCOMPONENTS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RESOLVED_UAND_VCOMPONENTS
	 * @model name="RESOLVED_U_AND_V_COMPONENTS"
	 *        annotation="http://www.eclipse.org/emf/2002/GenModel 0_en='Resolved u- and v- components of vector quantities relative to easterly and northerly\r\ndirections' 1_en='Resolved u- and v- components of vector quantities relative to the defined grid in the\r\ndirection of increasing x and y (or i and j) coordinates, respectively'"
	 * @generated
	 * @ordered
	 */
	public static final int RESOLVED_UAND_VCOMPONENTS_VALUE = 5;

	/**
	 * An array of all the '<em><b>Resolution And Component Flags</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ResolutionAndComponentFlags[] VALUES_ARRAY =
		new ResolutionAndComponentFlags[] {
			IDIRECTION_INCREMENTS,
			JDIRECTION_INCREMENTS,
			RESOLVED_UAND_VCOMPONENTS,
		};

	/**
	 * A public read-only list of all the '<em><b>Resolution And Component Flags</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ResolutionAndComponentFlags> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Resolution And Component Flags</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ResolutionAndComponentFlags get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ResolutionAndComponentFlags result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Resolution And Component Flags</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ResolutionAndComponentFlags getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ResolutionAndComponentFlags result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Resolution And Component Flags</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ResolutionAndComponentFlags get(int value) {
		switch (value) {
			case IDIRECTION_INCREMENTS_VALUE: return IDIRECTION_INCREMENTS;
			case JDIRECTION_INCREMENTS_VALUE: return JDIRECTION_INCREMENTS;
			case RESOLVED_UAND_VCOMPONENTS_VALUE: return RESOLVED_UAND_VCOMPONENTS;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ResolutionAndComponentFlags(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ResolutionAndComponentFlags
